import { Entity, Column, PrimaryGeneratedColumn,ManyToMany, ManyToOne, JoinColumn, OneToOne , BaseEntity } from 'typeorm';
import { Video } from '../video/video.entity'

@Entity('shield')
export class ShieLD extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'video_id' })
  video_id: number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'type' })
  type: number;

  @Column({ name: 'ic_group' })
  ic_group: number;

  @Column({ name: 'create_time' })
  create_time: Date;

  @ManyToOne(() => Video, (autherinfo) => autherinfo.shield)
  video_: Video[];
}
